import java.util.*;

/**
 * @author LKQ
 * @date 2022/6/14 17:56
 * @description 模拟
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()) {
            String t = sc.nextLine();
            char[] T = t.toCharArray();
            String ans = "";
            for (int i = 0; i < t.length(); i++) {
                if (!Character.isDigit(T[i])) {
                    ans += T[i];
                }else {
                    ans += "*";
                    while (i < t.length() && Character.isDigit(T[i])) {
                        ans += T[i];
                        i++;
                    }
                    ans += "*";
                    i--;
                }
            }
            System.out.println(ans);
        }
    }
}
